package com.cl.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.cl.common.AjaxResult;

public class BlockHandler {
    public static AjaxResult handlerException(BlockException e) {
        AjaxResult ajaxResult = AjaxResult.error();
        ajaxResult.put("self", "自定义1");
        return ajaxResult;
    }

    public static AjaxResult handlerException2(BlockException e) {
        AjaxResult ajaxResult = AjaxResult.error();
        ajaxResult.put("self", "自定义2");
        return ajaxResult;
    }
}
